package profiler.parameters.monitors;

import org.hyperic.sigar.Cpu;
import org.hyperic.sigar.NetInfo;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;

public class NetInfoParameter extends GenericParameter{
	
	private static NetInfo netInfoValue;
	private static Sigar sigarValue = new Sigar();
	private static String id;
	
	private static final double BYTE = 1.0;
	private static final double GIGA = 1073741824.0;

	public NetInfoParameter () throws SigarException{
		super(id, sigarValue); 
		netInfoValue = sigarValue.getNetInfo();
	}
	
	public String generateReport(){
		String report = "Default Gateway: "+netInfoValue.getDefaultGateway() + "\n";
		report += "Domain name: " + netInfoValue.getDomainName() + "\n";
		report += "Host name: " + netInfoValue.getHostName() + "\n";
		return report;
	}
	
}
